package com.ls.entity;

import com.alibaba.fastjson.annotation.JSONField;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.extension.activerecord.Model;
import com.fasterxml.jackson.annotation.JsonFormat;
import com.ls.controller.yxsms.model.EditYxSmsModel;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.NoArgsConstructor;

import java.io.Serializable;
import java.time.LocalDateTime;
import java.util.List;

/**
 * <p>
 * 轮播图
 * </p>
 *
 * @author pengyu
 * @since 2024-10-12
 */
@NoArgsConstructor
@Data
@EqualsAndHashCode(callSuper = false)
@TableName("yuexin_sms")
public class YxSms extends Model<YxSms> {
    private static final long serialVersionUID=1L;
    /**
     * 5g阅信模板ID，主键，自增
     */
    @TableId(value = "yx_sms_id", type = IdType.AUTO)
    private Long yxSmsId;
    /**
     * 阅信实际id
     */
    private Long yxId;
    /**
     * 阅信图片
     */
    private String yxSmsImg;
    /**
     * 阅信模板类型 0表示系统模板，1表示用户自定义模板
     */
    private Integer yxSmsType;
    /**
     * 公司id，来自company表，阅信模板类型为1的时候company_id有值
     */
    private Long companyId;
    /**
     * 创建时间
     */
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    @JSONField(format = "yyyy-MM-dd HH:mm:ss")
    private LocalDateTime createTime;
    /**
     * 更新时间
     */
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    @JSONField(format = "yyyy-MM-dd HH:mm:ss")
    private LocalDateTime updateTime;
    @Override
    protected Serializable pkVal() {
        return this.yxSmsId;
    }
}
